<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>06_精灵图的基本使用</title>
        <style>
            .box {
                display: inline-block;
                width: 300px;
                height: 300px;
                background-image: url(./img/bg02.png);
            }

            .box01 {
                width: 100px;
                height: 100px;
            }

            .box02 {
                width: 100px;
                height: 100px;
                background-position: -100px 0;
            }

            .box03 {
                width: 100px;
                height: 100px;
                background-position: -200px 0;
            }

            .box04 {
                width: 100px;
                height: 100px;
                background-position: -100px -100px;
            }
        </style>
    </head>
    <body>
        <div class="box"></div>
        <div class="box box01"></div>
        <div class="box box02"></div>
        <div class="box box03"></div>
        <div class="box box04"></div>
    </body>
</html>